package com.suo.enroll.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;



@Configuration
public class WebConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new LoginInterceptor())
                .addPathPatterns("/userList_wsq_and_hxh_yiqikaifa_bunengbeicaidao_suijishu_19283","/users/buzhunnicaidao/wsq/suijishu/19749302", "/access", "/delete"); // 受保护的路径
    }
}


